<%@page import="com.naszetatry.beans.User"%>
<%@page import="com.naszetatry.controller.RegistrationController"%>
<%@ include file= "/html/header.html" %>
<div id="main">
	<%
		User user = RegistrationController.getUser(request);
		boolean validation = RegistrationController.getPasswordChangeValidation(request).isLoginValid
							 && RegistrationController.getPasswordChangeValidation(request).isMailValid;
	%>

	<form action="passwordReminder">	
		<div class = "validation">
			<%if(!validation)
				out.println(Message.INVALID_DATA);%>
		</div>
		<table>
			<tr>
				<td>
       				login:
       			</td>
       			<td>
       				<input type="text" name="login" value = <%= user.getLogin() %>>
       			</td>
       		</tr>
       		<tr>
       			<td>		
       				mail:
       			</td>
       			<td>
       				 <input type="text" name="mail" value = <%= user.getMail() %>>
       			</td>
       		</tr>
       	</table>		 
       	<input type="submit" value="wyslij"/>
       				
       
    </form>
</div>

<%@ include file= "right.jsp" %>

<%@ include file= "/html/footer.html" %>
